package ai.people.netmon.twitter.probe.mapper;

import ai.people.netmon.framework.domain.twitter.probe.entity.TwitterAccount;
import ai.people.netmon.framework.domain.twitter.probe.request.UserWebRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * twitter采集配置账号库(TwCollectionConfigAccount)表数据库访问层
 *
 * @author yuanqinglong
 * @since 2022-02-25 10:50:43
 */
@Mapper
public interface TwitterAccountMapper extends BaseMapper<TwitterAccount> {


    /**
     * twitter账户列表页面
     *
     * @param twitterAccountPage twitter帐户页面
     * @param userRequest        用户请求
     * @return {@link IPage}<{@link TwitterAccount}>
     */
    IPage<TwitterAccount> listTwitterAccountPage(Page<TwitterAccount> twitterAccountPage,@Param("request") UserWebRequest userRequest);
}

